package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 * @Description 设置阶段流程后的 DTO
 * @Author sunshaoxiang
 * @Date 2021/11/28 9:31
 * @Version 1.0
 */
@Setter
@Getter
@ToString
public class UpdateExplainStageDTO extends BaseDTO {

    private static final long serialVersionUID = 4172310160070638333L;

    @NotNull(message = "{dto.msg.updateExplainStage.appId.NotNull}")
    private Long appId;

    @NotNull(message = "{dto.msg.updateExplainStage.formId.NotNull}")
    private Long formId;

    @NotNull(message = "{dto.msg.updateExplainStage.menuId.NotNull}")
    private Long menuId;

    /**
     * 是否是saas 1：saas  2：paas
     */
    @DecimalMin(value = "1", message = "{dto.msg.updateExplainStage.saasMark.DecimalMin}")
    @DecimalMax(value = "2", message = "{dto.msg.updateExplainStage.saasMark.DecimalMax}")
    @NotNull(message = "{dto.msg.updateExplainStage.saasMark.NotNull}")
    private Integer saasMark;

    /**
     * saas业务类型
     */
    private Integer businessType;
    /**
     * 阶段流程版本id
     */
    private Long stageProcessId;
}
